<?php namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;

class CodeController extends Controller
{
    public function updateZY(){
        $a = shell_exec("cd /var/www/ && ./zy.sh 2>&1");
        echo '<pre>';
        print_r($a);
        echo '</pre>';
    }

    public function updateZYW(){
        $a = shell_exec("cd /var/www/ && ./zyw.sh 2>&1");
        echo '<pre>';
        print_r($a);
        echo '</pre>';
    }
}